<template>
    <van-row></van-row>
</template>

<script>
    import {getUrlKey} from "@/utils/url";

    export default {
        name: "auth",
        mounted(){
            let data = {
                code:getUrlKey("code"),
                state:getUrlKey("state")
            }
            let redirectUrl = localStorage.getItem("redirect")
            this.$store.dispatch("LoginCallBack", data).then(()=>{
                window.location = redirectUrl;
            })
        },
    }
</script>

<style scoped>

</style>
